{template header}

<div class="container">

    <div class="row">
        <div class="col-md-8">
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="page-header">
                        <h1>各馆统计</h1>
                    </div>

                    <div class="topic-content">
                        <div class="topic-view">
                            <ul class="nav nav-tabs" role="tablist">
                                <li>
                            <table>
                                <tr>
                                    <td style="width: 10%;text-align: center">省份</td>
                                    <td style="width: 10%;text-align: center">城市</td>
                                    <td style="width: 10%;text-align: center">运营</td>
                                    <td style="width: 10%;text-align: center">筹备</td>
                                    <td style="width: 10%;text-align: center">停办</td>
                                    <td style="width: 10%;text-align: center">主办</td>
                                    <td style="width: 10%;text-align: center">协办</td>
                                    <td style="width: 10%;text-align: center">成立<br/>理事会</td>
                                    <td style="width: 10%;text-align: center">待成立<br/>理事会</td>
                                    <td style="width: 10%;text-align: center">待成立<br/>馆员团队</td>
                                    <td style="width: 10%;text-align: center">合计</td>
                                </tr>
                                {loop $arrGroup $k $v}

                                    {if $v[pro]}

                                        {loop $v['city'] $i $item}
                                            <tr>
                                                {if $i==0}<td rowspan="{$v['count']}" style="text-align: center">{$v['pro']}</td>{/if}
                                                <td style="text-align: center">{$item['cityname']}</td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('status'=>2,'all'=>1,'province'=>$v['pro'],'city'=>$item['cityname']))}">{$item['yun']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('status'=>1,'all'=>1,'province'=>$v['pro'],'city'=>$item['cityname']))}">{$item['chou']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('status'=>0,'all'=>1,'province'=>$v['pro'],'city'=>$item['cityname']))}">{$item['ting']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('isassist'=>2,'all'=>1,'province'=>$v['pro'],'city'=>$item['cityname']))}">{$item['zhu']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('isassist'=>1,'all'=>1,'province'=>$v['pro'],'city'=>$item['cityname']))}">{$item['xie']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('li'=>1,'all'=>1,'province'=>$v['pro'],'city'=>$item['cityname']))}">{$item['li']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('li'=>2,'all'=>1,'province'=>$v['pro'],'city'=>$item['cityname']))}">{$item['daili']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('guan'=>1,'all'=>1,'province'=>$v['pro'],'city'=>$item['cityname']))}">{$item['guan']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('all'=>1,'province'=>$v['pro'],'city'=>$item['cityname']))}">{$item['sum']}</a></td>
                                            </tr>
                                        {/loop}


                                            <tr>
                                                <td style="text-align: center">合计</td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('status'=>2,'all'=>1,'province'=>$v['pro']))}">{$v['sum']['yun']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('status'=>1,'all'=>1,'province'=>$v['pro']))}">{$v['sum']['chou']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('status'=>0,'all'=>1,'province'=>$v['pro']))}">{$v['sum']['ting']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('isassist'=>2,'all'=>1,'province'=>$v['pro']))}">{$v['sum']['zhu']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('isassist'=>1,'all'=>1,'province'=>$v['pro']))}">{$v['sum']['xie']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('li'=>1,'all'=>1,'province'=>$v['pro']))}">{$v['sum']['li']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('li'=>2,'all'=>1,'province'=>$v['pro']))}">{$v['sum']['daili']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('guan'=>1,'all'=>1,'province'=>$v['pro']))}">{$v['sum']['guan']}</a></td>
                                                <td style="text-align: center"><a href="{tsUrl('group','index',array('all'=>1,'province'=>$v['pro']))}">{$v['sum']['sum']}</a></td>
                                            </tr>
                                    {/if}
                                {/loop}



                                <tr>
                                    <td colspan="2" style="text-align: center">合计</td>
                                    <td style="text-align: center"><a href="{tsUrl('group','index',array('status'=>2,'all'=>1))}">$arrGroup['sum']['yun'] </a></td>
                                    <td style="text-align: center"><a href="{tsUrl('group','index',array('status'=>1,'all'=>1))}">$arrGroup['sum']['chou'] </a></td>
                                    <td style="text-align: center"><a href="{tsUrl('group','index',array('status'=>0,'all'=>1))}">$arrGroup['sum']['ting'] </a></td>
                                    <td style="text-align: center"><a href="{tsUrl('group','index',array('isassist'=>2,'all'=>1))}">$arrGroup['sum']['zhu']</a></td>
                                    <td style="text-align: center"><a href="{tsUrl('group','index',array('isassist'=>1,'all'=>1))}">$arrGroup['sum']['xie']</a></td>
                                    <td style="text-align: center"><a href="{tsUrl('group','index',array('li'=>1,'all'=>1))}">$arrGroup['sum']['li']</a></td>
                                    <td style="text-align: center"><a href="{tsUrl('group','index',array('li'=>2,'all'=>1))}">$arrGroup['sum']['daili']</a></td>
                                    <td style="text-align: center"><a href="{tsUrl('group','index',array('guan'=>1,'all'=>1))}">$arrGroup['sum']['guan']</a></td>
                                    <td style="text-align: center"><a href="{tsUrl('group','index',array('all'=>1))}">$arrGroup['sum']['sum']</a></td></tr>
                            </table>
                                </li>
                                </ul>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{template footer}


